<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Asset Manager Active
|--------------------------------------------------------------------------
|
| Turns the asset manager on or off.  If off, the existing asset code will
| simply return the original location.
|
| Caution, if you're using get_asset_by_id(), all those assets will not be called in
|
*/
$config['active'] = TRUE;

/*
|--------------------------------------------------------------------------
| Asset Database Check
|--------------------------------------------------------------------------
|
| Checks the database to see if the asset exists before it calls the
| database for the source.  If the asset doesn't exist, Asset Manager will
| create the asset in the database for you.
|
| Turn this off if you are completely sure that all your assets are in your
| asset database from actions within your content management system.
| Alternatively, turn this variable on then navigate to all the pages on
| your site which to populate the asset database
*/
$config['check_db'] = FALSE;

/*
|--------------------------------------------------------------------------
| Asset CDN Check
|--------------------------------------------------------------------------
|
| Checks if the asset exists in the CDN.  Only use this if you have some
| lost assets and you want to re-check the CDN library.  Navigate to the
| pages where the lost assets are and they'll get redeployed to the CDN
|
*/
$config['check_cdn'] = FALSE;

/*
|--------------------------------------------------------------------------
| Queue assets
|--------------------------------------------------------------------------
|
| Makes the asset manager queue the asset queue, or just process the assets
| immediately.  Useful if you've got a big site and have enabled asset
| purge and you might have a shed load of assets to process.  Don't forget
| to set up a cron job to run this!
|
*/
$config['queue'] = FALSE;

/*
|--------------------------------------------------------------------------
| Asset tables
|--------------------------------------------------------------------------
|
|
*/
$config['asset_table'] = 'assets';
$config['queue_table'] = 'assets_queue';

/*
|--------------------------------------------------------------------------
| CDN details
|--------------------------------------------------------------------------
|
| Set to false to turn off CDN completely.
|
| If you change this, you'll need to initiate a complete rebuild of your
| asset database, which could take some time on a bigger site.
|
*/
$config['cdn'] = FALSE;
$config['cdn_host'] = 'amazon';
$config['cdn_access_key'] = 'AKIAI7DVXOHNCQLGXAAQ';
$config['cdn_secret_key'] = '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';
$config['cdn_url'] = 'http://s3.amazonaws.com/';

/*
|--------------------------------------------------------------------------
| Default bucket
|--------------------------------------------------------------------------
|
| Leave as FALSE to use the domain name of this site as the bucket, or
| choose a default bucket name for yourself
*/
$config['cdn_bucket'] = FALSE;

/*
|--------------------------------------------------------------------------
| Disable bucket check
|--------------------------------------------------------------------------
|
| Once you're up and running, you can disable the bucket check to reduce
| traffic.  All this does is lists the buckets, if your bucket isn't there
| it creates one for you
*/
$config['cdn_check_bucket'] = FALSE;

/*
|--------------------------------------------------------------------------
| Query type
|--------------------------------------------------------------------------
|
| If you want to improve performance (why wouldn't you?), leave this as single
| it will execute the asset procedure with a single DB query rather than
| a query for each asset.  Otherwise, use multiple to make infividual calls
|
|
*/
$config['query'] = 'single';

/*
|--------------------------------------------------------------------------
| Base64 Limit
|--------------------------------------------------------------------------
|
| This will enable base64 translation of images to embed into the page.

| Set to FALSE to disable, or specify a size in KB.
|
*/
$config['base64_limit'] = 28;

/*
|--------------------------------------------------------------------------
| Compress Images
|--------------------------------------------------------------------------
|
| Set to false to ignore this, or put between 1-100 for image compression.
| 90 is best, but be careful not to put it too low.
|
*/
$config['compress_images'] = 90;
$config['queue_compress_images'] = TRUE;

/*
|--------------------------------------------------------------------------
| Minify resources
|--------------------------------------------------------------------------
|
| Minify javascript and CSS files
|
*/
$config['minify_js'] = TRUE;
$config['queue_minify_js'] = FALSE;
$config['minify_css'] = TRUE;
$config['queue_minify_css'] = FALSE;

/*
|--------------------------------------------------------------------------
| Combine resources
|--------------------------------------------------------------------------
|
| Combine the javascript and/or CSS.  Create one file containing all the JS
| or CSS content.
|
*/
$config['combine_js'] = TRUE;
$config['combine_css'] = TRUE;

/*
|--------------------------------------------------------------------------
| Compress HTML output
|--------------------------------------------------------------------------
|
| Compress the HTML output using 'minify' or 'asset_manager' minification
|
*/
$config['minify_output'] = FALSE;